package org.feiye.studyday21.prictice;

import java.util.Collections;
import java.util.LinkedList;
import java.util.List;

public class StringText {
	public static void main(String[] args) {
		List<String> list = new LinkedList<>();
		list.add("叶");
		list.add("1");
		list.add("a");
		list.add("飞");
		System.out.println("排序前：");
		for (String string : list) {
			System.out.print(string + "  ");
		}
		System.out.println("\n最大值：" + Collections.max(list));
		System.out.println("最小值：" + Collections.min(list));
		Collections.sort(list);
		System.out.println("排序后:");
		for (String string : list) {
			System.out.print(string + "  ");
		}

	}
}
